package config

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

const (
	//参数错误
	PARAM_ERROR_CODE = 1003

	//登录---------------------

	//用户名不存在
	USER_NOT_EXIST_CODE = 1001
	//验证码错误
	VALIDATE_ERROR_CODE = 1000
	//登录成功
	LOGIN_SUCCESS_CODE = 200
	//登录失败
	LOGIN_FAILED_CODE = 500
	//限制登录
	LIMIT_LOGIN_CODE = 1002
)

//404错误页面
func Handle404Html(context *gin.Context) {
	context.HTML(http.StatusOK, "404.html", gin.H{
		"title": "404",
	})
}
